﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Automted_Bank_teller.DB_layer
{
    class Restore : DatabaseConnection
    {
        public bool Restore_sys()
        {
            cmd.CommandText = @"Restore DATABASE [C:\Users\Mostafa\Documents\Visual Studio 2012\Projects\Automted Bank teller\Automted Bank teller\Bank_Database1.mdf] With Move From DISK = 'C:\Users\Mostafa\Documents\Visual Studio 2012\Projects\Automted Bank teller\Automted Bank teller\backup.bak'";
            cmd.ExecuteNonQuery();
            return true;
        }
        
    }
}
